<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar :datas="{formData:form}" showPerson psTagType="PERSON_SIMPLE_GROUP"
                         personType="PERSON_ALL_EXACT">
            </epl-top-bar>
            <el-row :gutter="10">
                <epl-userGeneral dataType="person" idCount="9" colspan='9' :panel="panel" diff="1">
                </epl-userGeneral>
                <epl-userGeneral dataType="person" idCount="7" colspan='15' :panel1="panel1" diff="2">
                    <epl-userMessageItem title="当前调整养老金" :sum="''">
                        <epl-column label="上次发放养老金" :value="'￥'"></epl-column>
                        <epl-column label="补扣发总月数" :value="''"></epl-column>
                        <epl-column label="补扣发总金额" :value="'￥'"></epl-column>
                    </epl-userMessageItem>
                </epl-userGeneral>
            </el-row>
            <el-form :model="form" ref="form" :rules="rules">
            <el-collapse v-model="activeNames" >
                <el-collapse-item  title="供养遗属定期待遇信息" name="1">
            <el-card class="ep-card">
                    <ep-table :data="tableData3" edited="true" :titleFilter="table1">
                        <ep-table-column editor="index" min-width="100" header="序号"></ep-table-column>
                        <ep-table-column editor="text" name="aaa036" header="待遇项目"></ep-table-column>
                        <ep-table-column editor="text" name="aaa037" header="待遇项目名称"></ep-table-column>
                        <ep-table-column editor="text" name="aae019" header="待遇项目金额"></ep-table-column>
                        <ep-table-column editor="text" name="aae041" header="待遇开始年月"></ep-table-column>
                    </ep-table>
            </el-card>
                </el-collapse-item>

                <el-collapse-item  title="请输入待遇调整方式" name="2">
                    <el-card class="ep-card">
                    <el-row>
                        <ep-table :data="tableData1" border rowDbClick>
                            <ep-table-column editor="index" min-width="100" header="序号"></ep-table-column>
                            <ep-table-column sortable editor="select" edited name="aaa036" header="待调整待遇项目" codetype="AAA036"></ep-table-column>
                            <ep-table-column sortable date-type="date" editor="date" format="yyyyMM" value-format="yyyyMM"  rules="this.$localRules.DateCheck" edited name="aae041" header="调整开始年月"></ep-table-column>
                            <ep-table-column sortable editor="select" edited name="changeway" header="调整方式" codetype="CHANGEWAY"></ep-table-column>
                            <ep-table-column sortable editor="number" edited name="aae019s" header="调整值"></ep-table-column>
                            <ep-table-column sortable editor="text"  name="aae019" header="调整到值"></ep-table-column>
                            <ep-table-column sortable editor="text" edited name="aae013" header="备注"></ep-table-column>
                            <ep-table-column header="操作" width="100" editor="button">
                                <template slot-scope="scope">
                                    <el-button type="text" size="mini" @click="deleteCurrentRow01(scope.row)">删除</el-button>
                                </template>
                            </ep-table-column>
                        </ep-table>
                    </el-row>
                    <el-row type="flex" justify="center">
                        <ep-button size="medium" type="text" name="+增加" id="doAdd01" :datas="{tableData1: tableData1}"></ep-button>
                    </el-row>
                    </el-card>
                </el-collapse-item>
                <el-collapse-item  title="待遇补扣信息" name="3">
                    <el-card class="ep-card">
                    <ep-table :data="tableData2" rowDbClick :pager="20" :titleFilter="table2">
                        <ep-table-column editor="index" min-width="100" header="序号"></ep-table-column>
                        <ep-table-column sortable editor="text" edited header="调整前金额" name="aae019"></ep-table-column>
                        <ep-table-column sortable editor="text" edited header="调整后金额" name="aae019s"></ep-table-column>
                        <ep-table-column sortable editor="text" edited header="调整幅度值" name="changenum"></ep-table-column>
                        <ep-table-column sortable editor="text" edited header="补扣发总金额" name="totalmoney"></ep-table-column>
                        <ep-table-column sortable editor="text" edited header="补扣发总月数" name="totalmonths"></ep-table-column>
                    </ep-table>
                    </el-card>
                </el-collapse-item>
                <el-card>
                <el-row type="flex" justify="center">
                    <ep-button id="cal" api="doQuery" type="primary" top="20" bottom="20"
                               :datas="{formData: form,tableData1:tableData1,tableData2:tableData2,tableData3:tableData3,panel:panel,panel1:panel1}"
                               name="计算"></ep-button>
                    <ep-saveButton id="doSave" type="primary" top="20"  bottom="20" ref="save" @formValidate="formValidate" :validate="['form']"
                                   :datas="{formData: form,tableData1:tableData1,tableData2:tableData2,tableData3:tableData3,panel:panel,panel1:panel1}" name="保存"></ep-saveButton>
                </el-row>
                </el-card>
            </el-collapse>
            </el-form>
        </el-main>
    </el-main>
</template>

<script src="../js/DependantsAdjustJS.js"></script>
